/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action.administration;

import java.util.Comparator;

/**
 *
 * @author Trang
 */
public class ComparePolicy implements Comparator<MarkovItem>{
    @Override
    public int compare(MarkovItem p1, MarkovItem p2) {
 
		Double firstName1 = p1.getOptimalPolicy();
		Double firstName2 = p2.getOptimalPolicy();
 
		return -(firstName2.compareTo(firstName1));
	}
}
